package com.kma.summer2012.client.events;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: HP
 * Date: 10.03.13
 * Time: 0:23
 * To change this template use File | Settings | File Templates.
 */
public class RequestInfoForMapEvent extends GwtEvent<RequestInfoForMapEvent.RequestInfoForMapEventHandler> {
    private static Type<RequestInfoForMapEventHandler> TYPE = new Type<RequestInfoForMapEventHandler>();

    public Map<Integer, String> requestInfoMap;

    public RequestInfoForMapEvent(Map<Integer, String> requestInfoMap) {
        this.requestInfoMap = requestInfoMap;
    }

    @Override
    public Type<RequestInfoForMapEventHandler> getAssociatedType() {
        return TYPE;
    }

    public static Type<RequestInfoForMapEventHandler> getType() {
        return TYPE;
    }

    @Override
    protected void dispatch(RequestInfoForMapEventHandler importRequestEventHandler) {
        importRequestEventHandler.onRequestInfoForMap(this);
    }

    public interface RequestInfoForMapEventHandler extends EventHandler {
        void onRequestInfoForMap(RequestInfoForMapEvent event);
    }
}
